﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
namespace MRS.DBL.Model
{
    /// <summary>
    /// 用户实体类
    /// </summary>
    [Serializable]
    public class User
    {
        /// <summary>
        /// auto_increment
        /// </summary>		
        private int _id;
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        /// <summary>
        /// UserName
        /// </summary>		
        private string _username;
        public string UserName
        {
            get { return _username; }
            set { _username = value; }
        }
        /// <summary>
        /// Password
        /// </summary>		
        private string _password;
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }
        /// <summary>
        /// RealName
        /// </summary>		
        private string _realname;
        public string RealName
        {
            get { return _realname; }
            set { _realname = value; }
        }
        /// <summary>
        /// Sex
        /// </summary>		
        private string _sex;
        public string Sex
        {
            get { return _sex; }
            set { _sex = value; }
        }
        /// <summary>
        /// Birthday
        /// </summary>		
        private DateTime _birthday;
        public DateTime Birthday
        {
            get { return _birthday; }
            set { _birthday = value; }
        }
        /// <summary>
        /// RoleId
        /// </summary>		
        private int _roleid;
        public int RoleId
        {
            get { return _roleid; }
            set { _roleid = value; }
        }
        /// <summary>
        /// Status
        /// </summary>		
        private string _status;
        public string Status
        {
            get { return _status; }
            set { _status = value; }
        }
        /// <summary>
        /// UnitId
        /// </summary>		
        private int _unitid;
        public int UnitId
        {
            get { return _unitid; }
            set { _unitid = value; }
        }
        /// <summary>
        /// Phone
        /// </summary>		
        private string _phone;
        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
        /// <summary>
        /// Email
        /// </summary>		
        private string _email;
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }
        /// <summary>
        /// GroupId
        /// </summary>		
        private int _groupid;
        public int GroupId
        {
            get { return _groupid; }
            set { _groupid = value; }
        }
        /// <summary>
        /// CreateUserId
        /// </summary>		
        private int _createuserid;
        public int CreateUserId
        {
            get { return _createuserid; }
            set { _createuserid = value; }
        }
        /// <summary>
        /// Online
        /// </summary>		
        private string _online;
        public string Online
        {
            get { return _online; }
            set { _online = value; }
        }
        /// <summary>
        /// CreateTime
        /// </summary>		
        private DateTime _createtime;
        public DateTime CreateTime
        {
            get { return _createtime; }
            set { _createtime = value; }
        }
        /// <summary>
        /// LastLoginTime
        /// </summary>		
        private DateTime _lastlogintime;
        public DateTime LastLoginTime
        {
            get { return _lastlogintime; }
            set { _lastlogintime = value; }
        }

        private DateTime _lastActiveTime;
        /// <summary>
        /// 最后活动时间(辅助属性)
        /// </summary>
        public DateTime LastActiveTime
        {
            get { return _lastActiveTime; }
            set { _lastActiveTime = value; }
        }

        private DateTime _expireDate;
        /// <summary>
        /// 过期日期
        /// </summary>
        public DateTime ExpireDate
        {
            get { return _expireDate; }
            set { _expireDate = value; }
        }

        /// <summary>
        /// Ext1
        /// </summary>		
        private string _ext1;
        public string Ext1
        {
            get { return _ext1; }
            set { _ext1 = value; }
        }
        /// <summary>
        /// Ext2
        /// </summary>		
        private string _ext2;
        public string Ext2
        {
            get { return _ext2; }
            set { _ext2 = value; }
        }
        /// <summary>
        /// Ext3
        /// </summary>		
        private string _ext3;
        public string Ext3
        {
            get { return _ext3; }
            set { _ext3 = value; }
        }
    }
}

